package com.jz.feign;

import com.jz.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignHandler implements  ProductFeign {
    //
    @Override
    public Product findById(Integer pid) {
        Product product=new Product();
        product.setPid(-1);
        product.setPname("该产品不存在");
        return product;
    }
}
